package gatperdut.chato.core.messaging.grammar.messinfo;

import org.json.simple.JSONArray;
import org.json.simple.JSONValue;

public class UpdateRoomsInfo extends MessageInfo {

    public UpdateRoomsInfo( String roomsDataString ) {
        super( MessageType.UPDATE_ROOMS );
        this.roomsData = (JSONArray) JSONValue.parse( roomsDataString );
    }

    private final JSONArray roomsData;

    public JSONArray getRoomsData() {
        return roomsData;
    }

}
